﻿@using System.Data
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    int ztype = DataConverter.CLng(ViewBag.ztype);
    Model.cols = ztype == 1 ? 5 : 6;
    Model.url = "FirendsData";
}
<div id="EGV">
    <table class="table table-striped table-bordered table-hover">
        @if (Model.itemCount > 0)
        {
            <tr>
                <th></th>
                <th>头像</th>
                <th>用户名</th>
                <th>昵称</th>
                <th>关注日期</th>
                @if (ztype != 1) { <th>操作</th> }
            </tr>
            foreach (DataRow dr in Model.dt.Rows)
            {
                <tr>
                    <td><input type="checkbox" name="idchk" value="@dr["ID"]" /></td>
                    <td><img src="@dr["salt"]" onerror="shownoface(this);" class="img50" /></td>
                    <td>@dr["UserName"]</td>
                    <td>@dr["HoneyName"]</td>
                    <td>@DataConverter.CDate(dr["CData"]).ToString("yyyy-MM-dd")</td>
                    @if (ztype != 1)
                    {
                        <td>
                            <a href="javascript:;" title="取消关注" onclick='mvcpage.del({ id: "@dr["TemplateID"]", url: "Follow_Del", confirm: "确定取消关注吗" });'><i class="fa fa-recycle"></i>取消关注</a>
                        </td>
                    }
                </tr>
            }
        }
        else
        {
            <tr><td colspan="6">无相关数据</td></tr>
        }
    </table>
    @if (ztype != 1) { <input type="button" class="btn btn-primary" value="批量取消关注" onclick="mvcpage.bat({ url: 'Follow_Del', confirm: '是否取消关注选中用户' });" /> }
</div>